<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改dxf文件部件')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-component-edit" th:object="${dxfComponent}">
            <input name="componentId" th:field="*{componentId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">元素的原始信息：</label>
                <div class="col-sm-8">
                    <input name="contentO" th:field="*{contentO}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">元素的转义信息：</label>
                <div class="col-sm-8">
                    <input name="contentC" th:field="*{contentC}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">元素的类型(E:表示设备，NA:表示未知)：</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">表示元素所在的图层：</label>
                <div class="col-sm-8">
                    <input name="layer" th:field="*{layer}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">元素的X轴坐标：</label>
                <div class="col-sm-8">
                    <input name="positionX" th:field="*{positionX}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">元素的Y轴坐标：</label>
                <div class="col-sm-8">
                    <input name="positionY" th:field="*{positionY}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">外键，表示所属图纸：</label>
                <div class="col-sm-8">
                    <input name="drawId" th:field="*{drawId}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dxfcomponent/component";
        $("#form-component-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-component-edit').serialize());
            }
        }
    </script>
</body>
</html>